// pages/RegistrationProcess/RegistrationProcess.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    iphoneXheight: 85,
    top: 195,
    north: false,
    south: false,
    canvas_hide: false,
    _Mask: true,
    _Mask_top: 200,
    bulb: 0,
    checkIn: '签到',
    signin: '已签到',
    list: [{
      data: '2019/8.30~2019/9/1',
      report_content: '同学，你的报到还没完成哦',
      title: '学校签到',
      content: '今日之责任不在他人，全在于我少年，今日之责任不在他人，全在于我少年',
    }],
    disabledBtn: false
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    if (wx.getSystemInfoSync().model != "iPhone X") {
      this.setData({
        iphoneXheight: 65,
        top: 155,
        _Mask_top: 135
      })
    }
  },
  hide_1: function() {
    var that = this;
    if (that.data.north == false) {
      that.setData({
        north: true
      });
    } else {
      that.setData({
        north: false
      });
    }
  },
  hide_2: function() {
    var that = this;
    if (that.data.south == false) {
      that.setData({
        south: true
      });
    } else {
      that.setData({
        south: false
      });
    }
  },
  onSignIn: function(e) {
    debugger
    console.log(e.currentTarget.dataset);
    let text = e.currentTarget.dataset.text;
    let num = e.currentTarget.dataset.num;
    let signin = this.data.signin;
    let checkIn = this.data.checkIn;
    this.setData({
      isNum: num,
      checkIn: signin,
      disabledBtn: true
    })
  },
  trigger_Mask: function() {
    var that = this;
    that.setData({
      _Mask: false
    })
  },
  close_Mask: function() {
    var that = this;
    that.setData({
      _Mask: true
    })
  }
})